Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local-up-cluster.sh: install CSI snapshotter #91504

Merged
merged 1 commit into from Jun 3, 2020

Conversation

pohly
Copy link
Contributor

@pohly pohly commented May 27, 2020

What type of PR is this?
/kind feature

What this PR does / why we need it:

This cluster add-on is required for snapshotting of CSI volumes and
must be installed when bringing up a cluster because CSI driver
installations depend on that.

Does this PR introduce a user-facing change?:

local-up-cluster.sh installs CSI snapshotter by default now, can be disabled with ENABLE_CSI_SNAPSHOTTER=false.

/sig storage

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. sig/storage Categorizes an issue or PR as relevant to SIG Storage. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels May 27, 2020
@pohly
Copy link
Contributor Author

pohly commented May 27, 2020

/ cc @xing-yang

${KUBECTL} --kubeconfig="${CERT_DIR}/admin.kubeconfig" apply -f "${KUBE_ROOT}/cluster/addons/volumesnapshots/volume-snapshot-controller/rbac-volume-snapshot-controller.yaml"
${KUBECTL} --kubeconfig="${CERT_DIR}/admin.kubeconfig" apply -f "${KUBE_ROOT}/cluster/addons/volumesnapshots/volume-snapshot-controller/volume-snapshot-controller-deployment.yaml"

echo "Kubernetes-CSI snapshotter successfully deployed."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to check if deployment is started successfully before printing out this message?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was wondering the same but then followed the example set by the dashboard installation which also doesn't wait.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose "deployed" really means just "deployed" and not also "running".

@pohly
Copy link
Contributor Author

pohly commented May 28, 2020

/retest

@pohly
Copy link
Contributor Author

pohly commented May 29, 2020

/retest

pull-kubernetes-e2e-kind timed out.

@pohly
Copy link
Contributor Author

pohly commented Jun 2, 2020

/retest

Another unrelated error ("CronJob should remove from active list jobs that have been deleted expand_more") in pull-kubernetes-e2e-kind.

@@ -90,6 +90,9 @@ PRESERVE_ETCD="${PRESERVE_ETCD:-false}"
# enable kubernetes dashboard
ENABLE_CLUSTER_DASHBOARD=${KUBE_ENABLE_CLUSTER_DASHBOARD:-false}

# enable Kubernetes-CSI snapshotter
ENABLE_CSI_SNAPSHOTTER=${ENABLE_CSI_SNAPSHOTTER:-true}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pohly do you mind switching this to off as default?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because most users of the script won't need it?

That's okay for me, I can always just enable it via the command line snippet that I use for invoking the script. I am less sure about users who need it but don't know about it yet...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed, force-pushed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with this.

@pohly pohly force-pushed the local-up-cluster-snapshotter branch from ab9c36a to d73d153 Compare June 2, 2020 14:14
This cluster add-on is required for snapshotting of CSI volumes and
must be installed when bringing up a cluster because CSI driver
installations depend on that.

It is unclear how many users of the script need CSI snapshotting,
therefore it is disabled by default (= the previous behavior).
@pohly pohly force-pushed the local-up-cluster-snapshotter branch from d73d153 to 2a31764 Compare June 2, 2020 14:16
@pohly
Copy link
Contributor Author

pohly commented Jun 2, 2020

/retest

3 similar comments
@pohly
Copy link
Contributor Author

pohly commented Jun 2, 2020

/retest

@pohly
Copy link
Contributor Author

pohly commented Jun 2, 2020

/retest

@pohly
Copy link
Contributor Author

pohly commented Jun 3, 2020

/retest

@xing-yang
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 3, 2020
@dims
Copy link
Member

dims commented Jun 3, 2020

/approve
/lgtm

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dims, pohly

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 3, 2020
@k8s-ci-robot k8s-ci-robot merged commit 6dbb92d into kubernetes:master Jun 3, 2020
@k8s-ci-robot k8s-ci-robot added this to the v1.19 milestone Jun 3, 2020
@BenTheElder
Copy link
Member

what other clusters should be installing this?
did we inform users about this?

@BenTheElder
Copy link
Member

bonus: how are we going to manage this when we push all of the cluster bringup code out-of-tree?

@xing-yang
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/storage Categorizes an issue or PR as relevant to SIG Storage. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants